feat(p2p): Add DHT discovery (Issue: #55)#99
feat(p2p): Add DHT discovery (Issue: #55)#99Joyabrata001 wants to merge 1 commit intoS4tvara:mainfrom
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@SubstantialCattle5 Unfortunately I am new testing and require a bit of help. |
|
Hi @Joyabrata001, |
13a4d0d to
1fc8407
Compare
|
@SubstantialCattle5
Now, I am new to testing and cant seem to be able to interpret the results of the Codecov report and unable to proceed. |
|
Took a dig through the
versions before |
|
Hi @Joyabrata001,
You’re well within the required target for code coverage for this project. Cheers, |
1fc8407 to
421e1a5
Compare
|
@SubstantialCattle5
|
|
surprisingly this issue is still not resolved. Gimme some time i'll update the ci |
|
Sure, thanks! |
|
@Joyabrata001 I've updated the ci runner can you make another pr, such that it can run with the new ci runner |


Implements DHT-based peer discovery using libp2p’s Kademlia DHT. (#55 )
Changes
Updated
internal/config/vault.go:DiscoveryConfigandDHTConfigstructs.BuildVaultConfigWithDeduplication. (requires improvement)Updated
internal/p2p/factory.go:CreateDHT()now returns a newDHTDiscoveryinstance.Updated
internal/p2p/dht.go:config.Discoveryusing libp2p’s Kademlia DHT.Added
internal/p2p/dht_test.go:Test for DHT discovery lifecycle and bootstrap connectivity.
Includes relay and NAT diagnostic checks.
go test ./internal/p2p -run TestDHTDiscovery -vScope of improvement:
internal/config/vault.godht.GetDefaultBootstrapPeerAddrInfos()only when DHT is explicitly enabled.internal/p2p/dht.gointernal/p2p/dht_test.go